<template>
  <div>
    <div :class="$attrs.class">父组件defineProps获取a：{{ a }}</div>
    <div>父组件当前的$attrs, {{ $attrs }}</div>
    <son v-bind="$attrs" />
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import son from './son.vue'

let props = defineProps(['a'])
</script>

<style lang="scss" scoped>

</style>